package com.lycx.businessmanager.model;

import java.util.Date;

import com.lycx.businessmanager.constant.ConstantsProperty;
import com.lycx.businessmanager.manager.DictionaryManager;
import com.lycx.businessmanager.util.MyUtils;

public class Customer {

	private int id;
	private String name;
	private String customerLevel;
	private String post;
	private String unit;
	private String branch;
	private String dept;
	private String workSite;
	private String deliveryAddress;
	private String phone;
	private String mobile;
	private Date relationCreateTime;
	private Date createTime;
	private Date modifyTime;
	private String interest;
	private String chargeScope;
	private String responsiblePerson;
	private String customerType;
	private String homeAddress;
	private String email;

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCustomerLevel() {
		return customerLevel;
	}
	public String getCustomerLevelName(){
		return DictionaryManager.valueToName(ConstantsProperty.DICT_TYPE_CUSTOMER_LEVEL, customerLevel);
	}
	public void setCustomerLevel(String customerLevel) {
		this.customerLevel = customerLevel;
	}
	public String getPost() {
		return post;
	}
	public void setPost(String post) {
		this.post = post;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public String getBranch() {
		return branch;
	}
	public void setBranch(String branch) {
		this.branch = branch;
	}
	public String getDept() {
		return dept;
	}
	public void setDept(String dept) {
		this.dept = dept;
	}
	public String getWorkSite() {
		return workSite;
	}
	public void setWorkSite(String workSite) {
		this.workSite = workSite;
	}
	public String getDeliveryAddress() {
		return deliveryAddress;
	}
	public void setDeliveryAddress(String deliveryAddress) {
		this.deliveryAddress = deliveryAddress;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public Date getRelationCreateTime() {
		return relationCreateTime;
	}
	public String getRelationCreateTimeStr(){
		return MyUtils.dateToString(this.relationCreateTime);
	}
	public void setRelationCreateTime(Date relationCreateTime) {
		this.relationCreateTime = relationCreateTime;
	}
	public void setRelationCreateTimeStr(String relationCreateTimeStr) {
		this.relationCreateTime = MyUtils.StringToDate(relationCreateTimeStr);
	}
	public Date getCreateTime() {
		return createTime;
	}
	public String getCreateTimeStr(){
		return MyUtils.dateToString(this.createTime);
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getModifyTime() {
		return modifyTime;
	}
	public String getModifyTimeStr() {
		return MyUtils.dateToString(this.modifyTime);
	}
	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}
	public String getInterest() {
		return interest;
	}
	public void setInterest(String interest) {
		this.interest = interest;
	}
	public String getChargeScope() {
		return chargeScope;
	}
	public void setChargeScope(String chargeScope) {
		this.chargeScope = chargeScope;
	}
	public String getResponsiblePerson() {
		return responsiblePerson;
	}
	public void setResponsiblePerson(String responsiblePerson) {
		this.responsiblePerson = responsiblePerson;
	}
	public String getCustomerType() {
		return customerType;
	}
	public String getCustomerTypeName(){
		return DictionaryManager.valueToName(ConstantsProperty.DICT_TYPE_CUSTOMER_TYPE, customerType);
	}
	public void setCustomerType(String customerType) {
		this.customerType = customerType;
	}
	public String getHomeAddress() {
		return homeAddress;
	}
	public void setHomeAddress(String homeAddress) {
		this.homeAddress = homeAddress;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	
	
}
